package inherit;

import java.util.HashSet;
import java.util.Set;

public class Department {

	private Integer id;
	private String deptName;
	private String deptAddress;
	private Set<AbstractPerson> persons = new HashSet<AbstractPerson>();
	
	public void addOnePerson(AbstractPerson onePerson) {
		persons.add(onePerson);
	}
	public String getDeptAddress() {
		return deptAddress;
	}
	public void setDeptAddress(String deptAddress) {
		this.deptAddress = deptAddress;
	}
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Set getPersons() {
		return persons;
	}
	public void setPersons(Set<AbstractPerson> persons) {
		this.persons = persons;
	}
}
